<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<TITLE>Visits</TITLE>
</HEAD>
<BODY>
<?PHP
    require_once('visits.php');
    $visits = new Visits();
    $visits->Count();
    echo '<B>Visits</B><BR/>'."\n";
    echo 'Total&nbsp;'.$visits->GetAll().'<BR/>'."\n";
    echo 'Today&nbsp;'.$visits->GetToday().'<BR/>'."\n";
    echo 'Yesterday&nbsp;'.$visits->GetLastDay(1).'<BR/>'."\n";
    echo 'The day before yesterday&nbsp;'.$visits->GetLastDay(2).'<BR/>'."\n";
    echo 'Sum of 2 days ago&nbsp;'.$visits->GetLastDays(2).'<BR/>'."\n";
    echo 'Last week&nbsp;'.$visits->GetLastDays(7).'<BR/>'."\n";
    echo 'Last month&nbsp;'.$visits->GetLastDays(30).'<BR/>'."\n";
    echo 'Last year&nbsp;'.$visits->GetLastDays(365).'<BR/>'."\n";
?>
</BODY>
</HTML>